import request from '@/utils/request'
import moduleUrl from '@/utils/moduleUrl'


export function treePermissionByRoleId(data) {

  return request({
    url: moduleUrl.upms + '/upms/role/permission/get',
    method: 'post',
    data
  })
}


export function allocatePermission(data) {
  return request({
    url: moduleUrl.upms + '/upms/role/permission/allocate',
    method: 'POST',
    data
  })
}
